import { terser }  from 'rollup-plugin-terser'
import typescript from 'rollup-plugin-typescript';
import resolve from '@rollup/plugin-node-resolve'
const version = `0.0.1`;

module.exports = [
  {
    input: 'tools.ts',
    output: [
      {
        file: 'dist/lanGadgets@' + version + '.min.js',
        format: 'cjs',
        name: 'gadgets',
      }
    ],
    plugins: [
      typescript(),
      terser(),
      resolve({
        browser: true,
      }),
    ]
  }
]
